home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2007 June
/
PCWorld_2007-06_cd.bin
/
v cisle
/
tclock
/
tclocklight-040702-3.exe
/
source
/
sntp
/
tcsntp.h
< prev
next >
Wrap
C/C++ Source or Header
|
2004-04-01
|
1KB
|
55 lines
/*-------------------------------------------
tcsntp.h
---------------------------------------------*/
#define _WIN32_IE 0x0200
#define _WIN32_WINNT 0x0400
#define WINVER 0x0400
#include <windows.h>
#include <commctrl.h>
#include "resource.h"
#include "../common/common.h"
// notification of event to get host
#define WSOCK_GETHOST (WM_USER+1)
// notification of socket event
#define WSOCK_SELECT (WM_USER+2)
#define IDTIMER_MAIN 1
#define SNTPM_SHOWDLG (WM_USER+10)
#define SNTPM_ERROR (WM_USER+11)
#define SNTPM_SUCCESS (WM_USER+12)
#define BUFSIZE_SERVER 81
/* ---------- main.c --------------- */
BOOL ExecCommandString(HWND hwnd, const char *command);
extern HINSTANCE g_hInst;
extern char g_mydir[];
extern BOOL g_bIniSetting;
extern char g_inifile[];
extern char g_langfile[];
extern HFONT g_hfontDialog;
extern HWND g_hwndMain;
/* ---------- dialog.c --------------- */
void OnShowDialog(HWND hwnd);
extern HWND g_hDlg;
extern HWND g_hwndLog;
/* ---------- sntp.c --------------- */
BOOL InitSNTP(HWND hwndParent);
void EndSNTP(HWND hwndParent);
void SetSNTPParam(const char *servername, int nTimeout, BOOL bLog,
const char *soundfile);
BOOL StartSyncTime(HWND hwnd, const char *pServer, BOOL bRAS);
void OnTimerSNTP(HWND hwndMain);
void OnGetHost(HWND hwnd, WPARAM wParam, LPARAM lParam);
void OnReceive(HWND hwnd, WPARAM wParam, LPARAM lParam);